home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / mui / MCC_Readargsgr.lha / Readargsgroup / README < prev   
Encoding:
Text File  |  1998-10-23  |  1.6 KB  |  46 lines

  1. Short:    Build GUI from ReadArgs template
  2. Author:   Szymon Ulatowski <szulat@friko6.onet.pl>
  3. Uploader: szulat@friko6.onet.pl
  4. Type:     dev/mui
  5. Requires: MUI
  6.  
  7.  
  8.   ABOUT
  9.  
  10. Readargsgroup.mcc is used by AmigaMesaRTL's prefs program and Mesa.mcc
  11. class. You can use it for free if you find it useful.
  12. The entire GUI is described by a single ReadArgs template line so it's
  13. the most compact representation in the world... Some special argument
  14. names can change GUI element's appearance, eg. "Name" is ordinary
  15. string argument, but "_FN_Filename" would have a filename popup
  16. because of "_FN_" prefix.
  17.  
  18. See developer documentation for full list of enhancements.
  19.  
  20.  
  21.   INSTALLATION
  22.  
  23. Copy Readargsgroup.mcc from 'libs' to your MUI:libs/mui directory.
  24. You can also copy demos/ReadArgsGUI to one of your path locations
  25. if you are going to use it in scripts.
  26.  
  27.  
  28.   THE DEMO
  29.  
  30. Supplied ReadArgsGUI is a very simple example of the MUI application
  31. using Readargsgroup. It builds a GUI, based on the supplied template.
  32. After the user fills in the fields and clicks on 'OK', the arguments
  33. string (ReadArgs compatible, of course) is returned to the standard
  34. output. 'Cancel' is indicated by return value of 5 (can be easily
  35. checked by IF WARN or FAILAT 5).
  36. It could be useful in scripts for getting user input. You can even do:
  37. (under v39 only)
  38.  
  39. Format `ReadArgsGUI DEVICE=DRIVE/K/A,NAME/K/A,OFS/S,FFS/S,INTL=INTERNATIONAL/S,NOINTL=NOINTERNATIONAL/S,DIRCACHE/S,NODIRCACHE/S,NOICONS/S,QUICK/S`
  40.  
  41. Consequent parameters are parsed with ReadArgs and put into the GUI.
  42. For example:
  43. ReadArgsGUI Your_Name,Age/N John 22
  44.  
  45. ...so you can supply the default values (or preserve the previous ones).
  46.